import Vue from 'vue'
import VueRouter from 'vue-router'
//1.导入路由
import login from '@/views/user/login.vue'


Vue.use(VueRouter)

//2.配置路由规则
const routes = [
    {
      name:'login',
      path:'/login',
      component:login
    }
]

const router = new VueRouter({
  routes
})

export default router
